/* Gentle background color */
body {
    background-color: #f0f4f8;
    /* Light pastel blue background */
    font-family: 'Merriweather', sans-serif;
    /* Changed font */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Semi-transparent overlay */
.overlay {
    background-color: rgba(255, 255, 255, 0.9);
    /* Soft transparent white */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 100%;
    position: relative;
}

/* Countdown card style */
.countdown-card {
    background: linear-gradient(135deg, #e1bee7, #b3e5fc);
    /* Soft lavender to light blue gradient */
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s;
}

.countdown-card:hover {
    transform: scale(1.05);
    /* Slight scale on hover */
}

/* Countdown numbers style */
.countdown-item {
    text-align: center;
    padding: 10px;
    border: 2px solid #b3e5fc;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.countdown-item:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Adjusting the yearold text style */
.yearold {
    font-size: 1.5rem;
    color: #6a1b9a;
    /* Dark purple for emphasis */
    transition: opacity 0.5s;
}

/* Birthday message style */
.birthday-message {
    display: none;
    /* Hidden by default */
    position: relative;
    /* Position relative to parent */
    padding: 20px;
    background: linear-gradient(135deg, #9c27b0, #2196f3);
    /* Purple to blue gradient */
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    /* Full width of parent */
    margin-top: 20px;
    /* Space from top */
    z-index: 10;
}

.birthday-message h2 {
    color: #ffffff;
    /* White for the header */
    font-size: 2.5rem;
    /* Increased size for visibility */
    margin: 0;
    font-family: 'Georgia', serif;
    /* Elegant font */
}

.birthday-message p {
    color: #ffffff;
    /* White for the message text */
    font-size: 1.25rem;
    /* Increased font size for better visibility */
    margin: 0.5rem 0 0;
}

/* Responsive font sizes for countdown numbers */
#days,
#hours,
#minutes,
#seconds {
    font-size: 1.5rem;
}

@media (min-width: 640px) {

    #days,
    #hours,
    #minutes,
    #seconds {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {

    #days,
    #hours,
    #minutes,
    #seconds {
        font-size: 2rem;
    }
}